<link rel="stylesheet" href="/static/css/bootstrap/bootstrap.min.css" />
<div class="content" style="width: 95%">
    <h3>管理员用户列表</h3>
    <hr />
    <div class="row" >
        <div class="col-md-10 ">
            <a class="btn btn-default" href="{:url('manager/user/addUser')}" role="button">添加用户</a>
        </div>
    </div>
    <div class=".col-md-9" style="margin-top:20px;">
        <table class="table table-bordered">
            <tr class="active">
                <td>ID</td>
                <td>用户名</td>
                <td>电话</td>
                <td>微信</td>
                <td>QQ</td>
                <td>身份证</td>
                <td>性别</td>
                <td>籍贯</td>
                <td>现住区域</td>
                <td>操作</td>
            </tr>
            {volist name="list" id="vo"  key="k" empty="暂时没有数据"}
                <tr {if condition = "($k%2==0)" } class="active" {/if} >
                    <td>{$vo.id}</td>
                    <td>{$vo.username}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.wechat}</td>
                    <td>{$vo.qq}</td>
                    <td>{$vo.idnumber}</td>
                    <td>{$vo.gender == 1 ? "男" : ($vo.gender == 2 ? "女" : "")}</td>
                    <td>{$vo.rid_hometown}</td>
                    <td>{$vo.rid_living}</td>
                    <td><span><a href="{:url('manager/user/editUser')}?id={$vo.id}" >编辑</a></span> <span>|</span> <a href="{:url('manager/user/delUser')}?id={$vo.id}">删除</a><span>|</span><button><a href="{:url('manager/user/addrole')}?id={$vo.id}">添加角色</a></button></td>
                </tr>
            {/volist}
        </table>
        <div style="float:right;">
            {$page}
        </div>
    </div>
</div>